-- GENERATED SPELL FOR [Razormaw] --


function spell0_17592(pUnit, Event) --@Flame Breath,n/a--
pUnit:FullCastSpellOnTarget(8873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17592', 1700, 1)
end

function spell1_17592(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(31279,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17592', 660, 1)
end

function spell2_17592(pUnit, Event) --@Terrifying Roar,Self--
pUnit:FullCastSpellOnTarget(14100,pUnit)
pUnit:RegisterEvent('Sorts_17592', 5326, 1)
end

function Sorts_17592(pUnit, Event)
local choix_sorts_17592 = math.random(0, 2)
if choix_sorts_17592 == 0 then
pUnit:RegisterEvent('spell0_17592', 1, 1)
end
if choix_sorts_17592 == 1 then
pUnit:RegisterEvent('spell1_17592', 1, 1)
end
if choix_sorts_17592 == 2 then
pUnit:RegisterEvent('spell2_17592', 1, 1)
end
end

function mob17592_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17592', math.random(1500, 3000), 1)
end

function mob17592_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17592_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17592_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17592, 1, 'mob17592_Action')
RegisterUnitEvent(17592, 2, 'mob17592_Leave')
RegisterUnitEvent(17592, 3, 'mob17592_Kill')
RegisterUnitEvent(17592, 4, 'mob17592_Die')
